function aiOccupancyChanges = ConvertClassesCodesIntoOccupancyChanges( aiIntegerCodes )
	%
	aiOccupancyChanges = zeros( size(aiIntegerCodes) );
	%
	for iCode = 1:numel( aiIntegerCodes )
		%
		switch aiIntegerCodes(iCode)
			%
			case 1
				aiOccupancyChanges(iCode) = +1;
			%
			case 2
				aiOccupancyChanges(iCode) = +2;
			%
			case 3
				aiOccupancyChanges(iCode) = +3;
			%
			case 4
				aiOccupancyChanges(iCode) = +4;
			%
			case 5
				aiOccupancyChanges(iCode) = +5;
			%
			case 6
				aiOccupancyChanges(iCode) = +6;
			%
			case 7
				aiOccupancyChanges(iCode) = 0;
			%
			case 8
				aiOccupancyChanges(iCode) = -1;
			%
			case 9
				aiOccupancyChanges(iCode) = -2;
			%
			case 10
				aiOccupancyChanges(iCode) = -3;
			%
			case 11
				aiOccupancyChanges(iCode) = -4;
			%
			case 12
				aiOccupancyChanges(iCode) = -5;
			%
			case 13
				aiOccupancyChanges(iCode) = -6;
			%
			case 14
				aiOccupancyChanges(iCode) = 0;
			%
			case 15
				aiOccupancyChanges(iCode) = +1;
			%
			case 16
				aiOccupancyChanges(iCode) = +2;
			%
			case 17
				aiOccupancyChanges(iCode) = 0;
			%
			case 18
				aiOccupancyChanges(iCode) = -1;
			%
			case 19
				aiOccupancyChanges(iCode) = -2;
			%
			otherwise
				aiOccupancyChanges(iCode) = 0;
			%
		end;% switch
		%
	end;% for
	%
end % function

